#include"stdio.h"
#include<stdlib.h>
#include<string.h>
void main(){
    FILE * fp;
    char * s1="Fortran Program",* s2="Basic";
    fp = fopen("text.txt","wb");
    if(fp==NULL){
        printf("不能打开text.txt文件\n");
        exit(0);
    }
    fwrite(s1,strlen(s1),1,fp);
    rewind(fp);
    fwrite(s2,strlen(s2),1,fp);
    fclose(fp);
}